package Day11;

public class Demo01 {
    public static void main(String[] args) {
        Note n = new Note("多多");


    }
}
class Note{
    String name;
    Note next;

    public Note(String name) {
        next = null;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Note getNext() {
        return next;
    }

    public void setNext(Note next) {
        this.next = next;
    }
}
